<?php

	class Annualbanquet_registration_value extends Model
	{
		
		private $bqRegHistoryID;
		private $eventID;
		private $firstName;
		private $lastName;
		private $email_contact;
		private $phone;
		private $address;
		private $city;
		private $state;
		private $zip;
		private $numAdultRegistered;
		private $numChildRegistered;
		private $registrationFeeAdult;
		private $registrationFeeChild;
		private $donation;
		private $paymentType;
		private $checkNum;
		private $paymentTransactionID;
		private $paymentStatus;
		private $comments;		
		private $currentyear;
        private $is_teacher = 0;

		public function getBQRegHistoryID(){ return $this->bqRegHistoryID; }
		public function setBQRegHistoryID( $value ){ $this->bqRegHistoryID = $value; }

		public function getEventID(){ return $this->eventID; }
		public function setEventID( $value ){ $this->eventID = $value; }

		public function getFirstName(){ return $this->firstName; }
		public function setFirstName( $value ){ $this->firstName = $value; }

		public function getLastName(){ return $this->lastName; }
		public function setLastName( $value ){ $this->lastName = $value; }

		public function getEmail(){ return $this->email_contact; }
		public function setEmail( $value ){ $this->email_contact = $value; }

		public function getPhone(){ return $this->phone; }
		public function setPhone( $value ){ $this->phone = $value; }

		public function getAddress(){ return $this->address; }
		public function setAddress( $value ){ $this->address = $value; }

		public function getCity(){ return $this->city; }
		public function setCity( $value ){ $this->city = $value; }

		public function getState(){ return $this->state; }
		public function setState( $value ){ $this->state = $value; }

		public function getZip(){ return $this->zip; }
		public function setZip( $value ){ $this->zip = $value; }

		public function getRegistrationFeeAdult(){ return $this->registrationFeeAdult; }
		public function setRegistrationFeeAdult( $value ){ $this->registrationFeeAdult = $value; }

		public function getRegistrationFeeChild(){ return $this->registrationFeeChild; }
		public function setRegistrationFeeChild( $value ){ $this->registrationFeeChild = $value; }

		public function getDonation(){ return $this->donation; }
		public function setDonation( $value ){ $this->donation = $value; }

		public function getNumAdultRegistered(){ return $this->numAdultRegistered; }
		public function setNumAdultRegistered( $value ){ $this->numAdultRegistered = $value; }

		public function getNumChildRegistered(){ return $this->numChildRegistered; }
		public function setNumChildRegistered( $value ){ $this->numChildRegistered = $value; }

		public function getPaymentType(){ return $this->paymentType; }
		public function setPaymentType( $value ){ $this->paymentType = $value; }

		public function getCheckNum(){ return $this->checkNum; }
		public function setCheckNum( $value ){ $this->checkNum = $value; }

		public function getPaymentTransactionID(){ return $this->paymentTransactionID; }
		public function setPaymentTransactionID( $value ){ $this->paymentTransactionID = $value; }

		public function getPaymentStatus(){ return $this->paymentStatus; }
		public function setPaymentStatus( $value ){ $this->paymentStatus = $value; }

		public function getComments(){ return $this->comments; }
		public function setComments( $value ){ $this->comments = $value; }

		public function getCurrentYear(){ return $this->currentyear; }
		public function setCurrentYear( $value ){ $this->currentyear = $value; }

        public function getIsTeacher(){ return $this->is_teacher; }
        public function setIsTeacher( $value ){ $this->is_teacher = $value; }

		public function getTotalRegistrationFee()
		{
			$regfee = ($this->getRegistrationFeeAdult() * $this->getNumAdultRegistered()) + ($this->getRegistrationFeeChild() * $this->getNumChildRegistered());
			return (($regfee - (0.35*$this->getIsTeacher()*$regfee)) + $this->getDonation());
		}

        public function getRegistrationFee()
        {
            $regfee = ($this->getRegistrationFeeAdult() * $this->getNumAdultRegistered()) + ($this->getRegistrationFeeChild() * $this->getNumChildRegistered());
            return $regfee;
        }

        public function getTeacherDiscount()
        {
            $regfee = ($this->getRegistrationFeeAdult() * $this->getNumAdultRegistered()) + ($this->getRegistrationFeeChild() * $this->getNumChildRegistered());
            return (0.35*$this->getIsTeacher()*$regfee);
        }

		public function getTotalNumRegistered()
		{
			return ( $this->getNumAdultRegistered() + $this->getNumChildRegistered() );
		}
		
		public static function cast(Annualbanquet_registration_value $object)
		{
        	return $object;
    	}
	}
?>